<template>
  <view class="splash-container">
    <image class="splash-icon" src="/static/xiaomaomi.gif" mode="aspectFit"></image>
    <text class="splash-text">欢迎使用</text>
  </view>
</template>

<script>
export default {
  data() {
    return {
      title: 'Hello'
    }
  },
  onLoad() {
    setTimeout(() => {
      uni.showModal({
        title: '欢迎使用', 
        content: '本软件名为随便 顾名思义就是随随便便的用 也是作者比较随便做的 如有不足 敬请谅解', 
        showCancel: false, 
        success: (res) => {
          if (res.confirm) { 
            uni.switchTab({
              url: "/pages/tabBar/yuedu/yuedu"
            });
          }
        }
      });
    }, 6000); 
  },
  methods: {

  }
};
</script>

<style scoped>
.splash-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #FFFFFF;
}

.splash-icon {
  width: 800rpx;
  height: 800rpx;
  margin-bottom: 0rpx;
}

.splash-text {
  font-size: 80rpx;
  color: #333333;
  font-weight: bold;
  text-shadow: 1rpx 1rpx 2rpx rgba(0,0,0,0.1);
}
</style> 

<style>
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 0rpx;
  width: 0rpx;
  margin-top: 200rpx;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50rpx;
}

.text-area {
  display: flex;
  justify-content: center;
}

.title {
  font-size: 36rpx;
  color: #8f8f94;
}
</style>